// 字符串处理

function startWith(sourceStr,searchValue,ingoreCase = false){
	let result = false
	if(ingoreCase === true){
		let target = searchValue.toLocaleLowerCase()
		// console.log('str.js:target',target);
		let source = sourceStr.substr(0,target.length).toLocaleLowerCase()
		// console.log('str.js:source',source);
		result = target === source
	}else{
		result = sourceStr.startWith(searchValue)
	}
	
	return result
}

export {startWith}